var windowName = "servicesRecomment";
var Page,plist;
apiready = function(){
    onWindowShow(function () {
        console.log(windowName + " show")
    })
    onWindowHide(function () {
        console.log(windowName + " hide")
    })
    console.log("index page is OK");

    plist = new List();
    Page = createVM("#Page",{
        product:[]
    },{
        //页面方法
        "init":function () {
            plist.setUrl("/app/recommend/list").setCbFunc(function (data) {
                clearLoading();
                Page.product = data;
            }).getList();
        }
    })
    Page.init()
    onPullUpLoadMore(function () {
        plist.getList();
    })
}